package com.reading_recognition_system.service;

import com.reading_recognition_system.pojo.History;
import org.apache.ibatis.annotations.Param;
import org.springframework.transaction.annotation.Transactional;

import java.util.Date;

@Transactional
public interface HistoryService {
    //根据用户id查找历史记录
    public History findHistory(int u_id);
    //插入历史记录
    public Integer insertHistory(History history);
    //根据用户ID删除全部历史记录
    public Integer deleteAllHistory( int u_id);
    //根据历史记录id删除具体历史记录
    public Integer deleteOneHistory(int h_id, int u_id);
    //根据时间删除某一段时间的全部历史记录
    public Integer deleteTimeHistory(Date timestamp);
}
